<template>
  <h1>{{ message }}</h1>
  <div v-html="htmlContent"></div>
</template>
<script setup>
import { ref } from 'vue';
const message = ref('Hello, Vue.js!');
var htmlContent = '<span style="color:red;">标签字符串</span>';
</script>

<style scoped>

</style>
